<!-- Tips:需在App.vue style 标签中加入以下代码，用于隐藏滚动条
 ::-webkit-scrollbar {
	  width: 0;
	  height: 0;
	  color: transparent;
} -->
<template>
	<view>
		<Ytitle :value='`Ytabs 当前索引${index}`' pieceColor='#007AFF'></Ytitle>
		<Ytabs :config='tabsConfig' title='全部版块' :tabsIndex.sync="index"></Ytabs>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				index:0,
				tabsConfig: [{
						title: '全部',
						id: 0,
					},
					{
						title: 'Golang',
						id: 1,
					},
					{
						title: 'Python',
						id: 1,
					},
					{
						title: 'java',
						id: 1,
					},
					{
						title: 'JavaScript',
						id: 1,
					},
					{
						title: 'PHP',
						id: 1,
					},
					{
						title: 'C/C++',
						id: 1,
					},
					{
						title: 'Object-C',
						id: 1,
					},
					{
						title: 'C#',
						id: 1,
					},
					{
						title: 'Lua',
						id: 1,
					},
				
				],
			}
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
